#ifndef FILE_READER_H
#define FILE_READER_H

#include <string>
#include <vector>
#include <fstream>
#include <boost/shared_ptr.hpp>

#include "dataset.h"

using namespace std;

/**
 * In this namespaces all apriori-test-classes are included.
 * \author Michael Opitz
 * \version 0.1
 */
namespace apriori_test {
	/**
	 * This class parses a simple file, and stores the blank-separated
	 * items in a vector<boost::shared_ptr<dataset> >.
	 */
	class file_reader {
	public:
		/**
		 * Constructor, which parses the corresponding file.
		 */
		file_reader(const string &file);
		~file_reader();

		vector<boost::shared_ptr<dataset> >& get_set() {return _set;}
		const vector<boost::shared_ptr<dataset> >& get_set() 
			const {return _set;}
	private:
		vector<boost::shared_ptr<dataset> > _set;
	};
}

#endif
